import axios from "@/utils/requist"

export default {
	// 获取章节 一级标题
	getChapter(token, date) {
		return axios({
			method: 'get',
			url: `chapter?pk=${date}`,
			headers: { 'Authorization': `Bearer ${token}` },
		})
	},

	Delect(token, date) {
		return axios({
			method: 'get',
			url: `chapter?pk=${date}`,
			headers: { 'Content-Type': `application/x-www-form-urlencoded`, 'Authorization': `Bearer ${token}` },
		})
	}
}